import React from "react";
import { useRoutes } from "react-router-dom"
import baseRouter from "./baseRouter.tsx"

function RouterView() {
  // 创建路由
  const element = useRoutes(baseRouter)
  // 返回创建好的元素
  return ( <>{element}</> );
}

export default RouterView;